package com.common.config;

import com.common.utils.BCryptPasswordEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 密码加解密工具类注入IOC容器
 * @author gm
 * @date 2020/6/8
 */
@Configuration
public class BCryptPasswordEncoderConfig {

    @Bean
    public BCryptPasswordEncoder passwordEncoder(){
        //处理用户密码的加密解密
        return new BCryptPasswordEncoder();
    }
}
